import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import axios from 'axios'
//antui js plugin
import './plugin/antui'
import './assets/style.css'
axios.defaults.baseURL = 'http://localhost:3000/api/v1'

axios.interceptors.request.use(config=>{
  config.headers.Authorization = `Bearer ${window.sessionStorage.getItem('token')}`
  return config
})

Vue.prototype.$http = axios
Vue.config.productionTip = false


new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
